package com.liqiye.paymanager.bean.payment;

import com.liqiye.paymanager.constant.PaymentPlatform;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Map;

@Data
public class PaymentRequest {

    public PaymentPlatform platform;
    public String orderId;
    public BigDecimal amount;
    public String currency;  // 货币代码，如 USD
    public String paymentMethod; // CARD, WALLET, etc.
    public String customerEmail;
    public String description;
    public Map<String, Object> ext; // 额外参数（如回调地址）

    private String idempotencyKey = "e735219d-bb90-4450-b4f2-a2fdbfbefd8c"; // 客户端生成的唯一幂等键（可以用UUID，客户端生成传给前端，前端提交创建请求时带上）



    // {
    //   "platform": "PAYPAL",
    //   "orderId":"ORD123",
    //   "amount": 2.00,
    //   "currency": "USD",
    //   "description":"测试PayPal支付"
    // }

}
